package com.peanut.entity.vo;

import com.orm.annotation.TableFiled;
import com.peanut.entity.ChannelType;
import lombok.Data;

import java.util.List;

@Data
public class ChannelTypeVO {
	private Integer id;
	private String name;
	
	@TableFiled(exist = false)
	private List<ChannelTypeSonVO> children;  // 子节点
	
	
	@Data
	public static class ChannelTypeSonVO {
		private Integer id;
		private String name;
		
		private Integer parentId;
	}
}


